package com.gavin.utils;

public class XMLException extends RuntimeException {

	private static final long serialVersionUID = 23620782682752178L;
	public static final int NO_LINE = -1;
	private int lineNr;

	public XMLException(String name, String message) {
		super("XML Parse Exception during parsing of "+ ((name == null) ? "the XML definition" : ("a " + name + " element")) + ": " + message);
		this.lineNr = XMLException.NO_LINE;
	}

	public int getLineNr() {
		return this.lineNr;
	}

}
